class DaemonThread extends Thread 
{
	public void run()
	{
		System.out.println("run method started ");
		System.out.println(Thread.currentThread());
		System.out.println(Thread.currentThread().isDaemon());
	}
	public static void main(String[] args) 
	{
		DaemonThread  d=new 	DaemonThread();
		DaemonThread  d1=new 	DaemonThread();
		//System.out.println(d.isDaemon());
		d.setDaemon(true);
		d.start();
		d1.start();
		System.out.println(d.isDaemon());
		System.out.println(d.getPriority());
	}
}
